//
//  NSObject+Screen.m
//  WorkManager
//
//  Created by ukongm on 17/1/5.
//  Copyright © 2017年 ukongm. All rights reserved.
//

#import "NSObject+Screen.h"

@implementation NSObject (Screen)

- (AppDelegate *)appDelegate{
    return (AppDelegate*)[UIApplication sharedApplication].delegate;
}

- (CGSize)screenSize{
    return [UIScreen mainScreen].bounds.size;
}

- (CGRect)screenBounds{
    return [UIScreen mainScreen].bounds;
}


- (CGFloat)fixedWidthForPLan:(CGFloat)width{
    
    return width;
    
}

- (CGFloat)fixedHeighthForPLan:(CGFloat)height{
    return height;
}



@end
